package com.cwh.taskcenter.task.mapper;

import com.cwh.taskcenter.task.model.UserTaskRecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * @author cwh
 */
@Mapper
public interface UserTaskRecordMapper {


    void create(UserTaskRecordDO userTaskRecordDO);

    void creates(List<UserTaskRecordDO> list);

    long existsByUniqueKey(String unionKey);


    List<LocalDate> getUserSignInDates(@Param("eventType") String eventType, @Param("userId")Long userId, @Param("taskId")Long taskId);
}
